<?php
//2.3
$pzcms_column_value = array( 'type' => 'mixed' );
$pzcms_column_data = array( 'type' => 'mixed' );
$pzcms_column_disabled = array( 'type' => 'boolean' );
$pzcms_column_empty_data = array( 'type' => 'mixed' );
$pzcms_column_error_bubbling = array( 'type' => 'boolean' );
$pzcms_column_error_mapping = array( 'type' => 'array' );
$pzcms_column_label = array( 'type' => 'string' );
$pzcms_column_label_attr = array( 'type' => 'array' );
$pzcms_column_mapped = array( 'type' => 'boolean' );
$pzcms_column_read_only = array( 'type' => 'boolean' );
$pzcms_column_required = array( 'type' => 'boolean' );
$pzcms_column_trim = array( 'type' => 'boolean', 'selected' => 1, 'defaultValue' => true );
$pzcms_column_attr = array( 'type' => 'array' );
$pzcms_column_divisor = array( 'type' => 'integer' );
$pzcms_column_grouping = array( 'type' => 'boolean' );
$pzcms_column_precision = array( 'type' => 'integer', 'selected' => 1, 'defaultValue' => 3 );
$pzcms_column_rounding_mode = array( 'type' => 'integer' );
$pzcms_column_divisor = array( 'type' => 'integer' );
$pzcms_column_currency = array( 'type' => 'string' );
$pzcms_column_invalid_message = array( 'type' => 'string' );
$pzcms_column_invalid_message_parameters = array( 'type' => 'array' );
$pzcms_column_choices = array( 'type' => 'array' );
$pzcms_column_choice_list = array( 'type' => 'Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceListInterface' );
$pzcms_column_always_empty = array( 'type' => 'boolean' );
$pzcms_column_type = array( 'type' => 'string' );
$pzcms_column_default_protocol = array( 'type' => 'string' );
$pzcms_column_empty_value_choice = array( 'type' => 'string', 'alternative' => 'boolean', 'selected' => 1, 'defaultValue' => '' );
$pzcms_column_expanded = array( 'type' => 'boolean' );
$pzcms_column_multiple = array( 'type' => 'boolean' );
$pzcms_column_preferred_choices = array( 'type' => 'array' );
$pzcms_column_compound = array( 'type' => 'boolean' );
$pzcms_column_by_reference = array( 'type' => 'boolean' );
$pzcms_column_inherit_data = array( 'type' => 'boolean' );
$pzcms_column_years = array( 'type' => 'array' );
$pzcms_column_months = array( 'type' => 'array' );
$pzcms_column_days = array( 'type' => 'array' );
$pzcms_column_hours = array( 'type' => 'array' );
$pzcms_column_minutes = array( 'type' => 'array' );
$pzcms_column_seconds = array( 'type' => 'array' );
$pzcms_column_empty_value_date = array( 'type' => 'string', 'alternative' => 'array', 'selected' => 1, 'defaultValue' => '' );
$pzcms_column_format = array( 'type' => 'string', 'alternative' => 'integer', 'selected' => 1, 'defaultValue' => 'yyyy-MM-dd' );
$pzcms_column_input = array( 'type' => 'string' );
$pzcms_column_widget = array( 'type' => 'string', 'options' => array('choice', 'text', 'single_text'), 'selected' => 1, 'defaultValue' => 'choice' );
$pzcms_column_model_timezone = array( 'type' => 'string' );
$pzcms_column_view_timezone = array( 'type' => 'string' );
$pzcms_column_date_format = array( 'type' => 'string', 'alternative' => 'integer' );
$pzcms_column_date_widget = array( 'type' => 'string' );
$pzcms_column_time_widget = array( 'type' => 'string' );
$pzcms_column_with_minutes = array( 'type' => 'boolean', 'options' => array(true, false), 'selected' => 1, 'defaultValue' => true );
$pzcms_column_with_seconds = array( 'type' => 'boolean' );
$pzcms_column_multiple = array( 'type' => 'boolean' );
$pzcms_column_property_path = array( 'type' => 'any' );


$CMS_COLUMN_TYPES = array(
	'text' => array(
//		'data' => $pzcms_column_data,
		'disabled' => $pzcms_column_disabled,
//		'empty_data' => $pzcms_column_empty_data,
//		'error_bubbling' => $pzcms_column_error_bubbling,
//		'error_mapping' => $pzcms_column_error_mapping,
//		'label' => $pzcms_column_label,
//		'label_attr' => $pzcms_column_label_attr,
//		'mapped' => $pzcms_column_mapped,
		'read_only' => $pzcms_column_read_only,
//		'required' => $pzcms_column_required,
		'trim' => $pzcms_column_trim,
	),
	'textarea' => array(
		'attr' => $pzcms_column_attr,
//		'data' => $pzcms_column_data,
		'disabled' => $pzcms_column_disabled,
//		'empty_data' => $pzcms_column_empty_data,
//		'error_bubbling' => $pzcms_column_error_bubbling,
//		'error_mapping' => $pzcms_column_error_mapping,
//		'label' => $pzcms_column_label,
//		'label_attr' => $pzcms_column_label_attr,
//		'mapped' => $pzcms_column_mapped,
		'read_only' => $pzcms_column_read_only,
//		'required' => $pzcms_column_required,
		'trim' => $pzcms_column_trim,
	),
//	'email' => array(
//		'data' => $pzcms_column_data,
//		'disabled' => $pzcms_column_disabled,
//		'empty_data' => $pzcms_column_empty_data,
//		'error_bubbling' => $pzcms_column_error_bubbling,
//		'error_mapping' => $pzcms_column_error_mapping,
//		'label' => $pzcms_column_label,
//		'label_attr' => $pzcms_column_label_attr,
//		'mapped' => $pzcms_column_mapped,
//		'read_only' => $pzcms_column_read_only,
//		'required' => $pzcms_column_required,
//		'trim' => $pzcms_column_trim,
//	),
	'integer' => array(
		'grouping' => $pzcms_column_grouping,
		'precision' => $pzcms_column_precision,
// 		'rounding_mode' => $pzcms_column_rounding_mode,
//		'data' => $pzcms_column_data,
		'disabled' => $pzcms_column_disabled,
//		'empty_data' => $pzcms_column_empty_data,
//		'error_bubbling' => $pzcms_column_error_bubbling,
//		'error_mapping' => $pzcms_column_error_mapping,
//		'label' => $pzcms_column_label,
//		'label_attr' => $pzcms_column_label_attr,
//		'mapped' => $pzcms_column_mapped,
		'read_only' => $pzcms_column_read_only,
//		'required' => $pzcms_column_required,
		'trim' => $pzcms_column_trim,
	),
	'money' => array(
		'currency' => $pzcms_column_currency,
		'divisor' => $pzcms_column_divisor,
		'grouping' => $pzcms_column_grouping,
		'precision' => $pzcms_column_precision,
//		'data' => $pzcms_column_data,
		'disabled' => $pzcms_column_disabled,
//		'empty_data' => $pzcms_column_empty_data,
//		'error_bubbling' => $pzcms_column_error_bubbling,
//		'error_mapping' => $pzcms_column_error_mapping,
//		'invalid_message' => $pzcms_column_invalid_message,
//		'invalid_message_parameters' => $pzcms_column_invalid_message_parameters,
//		'label' => $pzcms_column_label,
//		'label_attr' => $pzcms_column_label_attr,
//		'mapped' => $pzcms_column_mapped,
		'read_only' => $pzcms_column_read_only,
//		'required' => $pzcms_column_required,
	),
	'number' => array(
		'grouping' => $pzcms_column_grouping,
		'precision' => $pzcms_column_precision,
//		'rounding_mode' => $pzcms_column_rounding_mode,
//		'data' => $pzcms_column_data,
		'disabled' => $pzcms_column_disabled,
//		'empty_data' => $pzcms_column_empty_data,
//		'error_bubbling' => $pzcms_column_error_bubbling,
//		'error_mapping' => $pzcms_column_error_mapping,
//		'invalid_message' => $pzcms_column_invalid_message,
//		'invalid_message_parameters' => $pzcms_column_invalid_message_parameters,
//		'label' => $pzcms_column_label,
//		'label_attr' => $pzcms_column_label_attr,
//		'mapped' => $pzcms_column_mapped,
		'read_only' => $pzcms_column_read_only,
//		'required' => $pzcms_column_required,
	),
	'password' => array(
		'always_empty' => $pzcms_column_always_empty,
		'disabled' => $pzcms_column_disabled,
//		'empty_data' => $pzcms_column_empty_data,
//		'error_bubbling' => $pzcms_column_error_bubbling,
//		'error_mapping' => $pzcms_column_error_mapping,
//		'label' => $pzcms_column_label,
//		'label_attr' => $pzcms_column_label_attr,
//		'mapped' => $pzcms_column_mapped,
		'read_only' => $pzcms_column_read_only,
//		'required' => $pzcms_column_required,
		'trim' => $pzcms_column_trim,
	),
	'percent' => array(
		'precision' => $pzcms_column_precision,
		'type' => $pzcms_column_type,
//		'data' => $pzcms_column_data,
		'disabled' => $pzcms_column_disabled,
//		'empty_data' => $pzcms_column_empty_data,
//		'error_bubbling' => $pzcms_column_error_bubbling,
//		'error_mapping' => $pzcms_column_error_mapping,
//		'invalid_message' => $pzcms_column_invalid_message,
//		'invalid_message_parameters' => $pzcms_column_invalid_message_parameters,
//		'label' => $pzcms_column_label,
//		'label_attr' => $pzcms_column_label_attr,
//		'mapped' => $pzcms_column_mapped,
		'read_only' => $pzcms_column_read_only,
//		'required' => $pzcms_column_required,
	),
//	'search' => array(
//		'disabled' => $pzcms_column_disabled,
//		'empty_data' => $pzcms_column_empty_data,
//		'error_bubbling' => $pzcms_column_error_bubbling,
//		'error_mapping' => $pzcms_column_error_mapping,
//		'label' => $pzcms_column_label,
//		'label_attr' => $pzcms_column_label_attr,
//		'mapped' => $pzcms_column_mapped,
//		'read_only' => $pzcms_column_read_only,
//		'required' => $pzcms_column_required,
//		'trim' => $pzcms_column_trim,
//	),
//	'url' => array(
//		'default_protocol' => $pzcms_column_default_protocol,
//		'data' => $pzcms_column_data,
//		'disabled' => $pzcms_column_disabled,
//		'empty_data' => $pzcms_column_empty_data,
//		'error_bubbling' => $pzcms_column_error_bubbling,
//		'error_mapping' => $pzcms_column_error_mapping,
//		'label' => $pzcms_column_label,
//		'label_attr' => $pzcms_column_label_attr,
//		'mapped' => $pzcms_column_mapped,
//		'read_only' => $pzcms_column_read_only,
//		'required' => $pzcms_column_required,
//		'trim' => $pzcms_column_trim,
//	),
	'choice' => array(
		'choices' => $pzcms_column_choices,
//		'choice_list' => $pzcms_column_choice_list,
		'empty_value' => $pzcms_column_empty_value_choice,
		'expanded' => $pzcms_column_expanded,
		'multiple' => $pzcms_column_multiple,
//		'preferred_choices' => $pzcms_column_preferred_choices,
//		'compound' => $pzcms_column_compound,
//		'empty_data' => $pzcms_column_empty_data,
//		'error_bubbling' => $pzcms_column_error_bubbling,
//		'by_reference' => $pzcms_column_by_reference,
//		'data' => $pzcms_column_data,
		'disabled' => $pzcms_column_disabled,
//		'error_mapping' => $pzcms_column_error_mapping,
//		'inherit_data' => $pzcms_column_inherit_data,
//		'label' => $pzcms_column_label,
//		'label_attr' => $pzcms_column_label_attr,
//		'mapped' => $pzcms_column_mapped,
		'read_only' => $pzcms_column_read_only,
//		'required' => $pzcms_column_required,
	),
//		'entity',
//		'country',
//		'language',
//		'locale',
//		'timezone',
//		'currency',
	'date' => array(
//		'days' => $pzcms_column_days,
// 		'empty_value' => $pzcms_column_empty_value_date,
		'format' => $pzcms_column_format,
//		'input' => $pzcms_column_input,
//		'model_timezone' => $pzcms_column_model_timezone,
//		'months' => $pzcms_column_months,
//		'view_timezone' => $pzcms_column_view_timezone,
//		'widget' => $pzcms_column_widget,
//		'years' => $pzcms_column_years,
//		'error_bubbling' => $pzcms_column_error_bubbling,
//		'by_reference' => $pzcms_column_by_reference,
//		'data' => $pzcms_column_data,
		'disabled' => $pzcms_column_disabled,
//		'error_mapping' => $pzcms_column_error_mapping,
//		'inherit_data' => $pzcms_column_inherit_data,
//		'invalid_message' => $pzcms_column_invalid_message,
//		'invalid_message_parameters' => $pzcms_column_invalid_message_parameters,
//		'mapped' => $pzcms_column_mapped,
		'read_only' => $pzcms_column_read_only,
	),
	'datetime' => array(
		'date_format' => $pzcms_column_date_format,
//		'date_widget' => $pzcms_column_date_widget,
//		'days' => $pzcms_column_days,
//		'empty_value' => $pzcms_column_empty_value_date,
		'format' => $pzcms_column_format,
//		'hours' => $pzcms_column_hours,
//		'input' => $pzcms_column_input,
//		'minutes' => $pzcms_column_minutes,
//		'model_timezone' => $pzcms_column_model_timezone,
//		'months' => $pzcms_column_months,
//		'seconds' => $pzcms_column_seconds,
//		'time_widget' => $pzcms_column_time_widget,
//		'view_timezone' => $pzcms_column_view_timezone,
//		'widget' => $pzcms_column_widget,
		'with_minutes' => $pzcms_column_with_minutes,
		'with_seconds' => $pzcms_column_with_seconds,
		'years' => $pzcms_column_years,
//		'data' => $pzcms_column_data,
		'disabled' => $pzcms_column_disabled,
//		'inherit_data' => $pzcms_column_inherit_data,
//		'invalid_message' => $pzcms_column_invalid_message,
//		'invalid_message_parameters' => $pzcms_column_invalid_message_parameters,
//		'mapped' => $pzcms_column_mapped,
		'read_only' => $pzcms_column_read_only,
	),
	'time' => array(
		'empty_value' => $pzcms_column_empty_value_date,
//		'hours' => $pzcms_column_hours,
		'input' => $pzcms_column_input,
//		'minutes' => $pzcms_column_minutes,
//		'model_timezone' => $pzcms_column_model_timezone,
//		'seconds' => $pzcms_column_seconds,
//		'view_timezone' => $pzcms_column_view_timezone,
//		'widget' => $pzcms_column_widget,
		'with_minutes' => $pzcms_column_with_minutes,
		'with_seconds' => $pzcms_column_with_seconds,
//		'by_reference' => $pzcms_column_by_reference,
//		'error_bubbling' => $pzcms_column_error_bubbling,
//		'data' => $pzcms_column_data,
		'disabled' => $pzcms_column_disabled,
//		'inherit_data' => $pzcms_column_inherit_data,
//		'error_mapping' => $pzcms_column_error_mapping,
//		'invalid_message' => $pzcms_column_invalid_message,
//		'invalid_message_parameters' => $pzcms_column_invalid_message_parameters,
//		'mapped' => $pzcms_column_mapped,
		'read_only' => $pzcms_column_read_only,
	),
	'birthday' => array(
//		'years' => $pzcms_column_years,
//		'days' => $pzcms_column_days,
		'empty_value' => $pzcms_column_empty_value_date,
		'format' => $pzcms_column_format,
//		'input' => $pzcms_column_input,
//		'model_timezone' => $pzcms_column_model_timezone,
//		'months' => $pzcms_column_months,
		'widget' => $pzcms_column_widget,
//		'data' => $pzcms_column_data,
		'disabled' => $pzcms_column_disabled,
//		'inherit_data' => $pzcms_column_inherit_data,
//		'invalid_message' => $pzcms_column_invalid_message,
//		'invalid_message_parameters' => $pzcms_column_invalid_message_parameters,
//		'mapped' => $pzcms_column_mapped,
		'read_only' => $pzcms_column_read_only,
	),
	'checkbox' => array(
//		'value' => $pzcms_column_value,
//		'compound' => $pzcms_column_compound,
//		'empty_data' => $pzcms_column_empty_data,
//		'data' => $pzcms_column_data,
		'disabled' => $pzcms_column_disabled,
//		'error_bubbling' => $pzcms_column_error_bubbling,
//		'error_mapping' => $pzcms_column_error_mapping,
//		'label' => $pzcms_column_label,
//		'label_attr' => $pzcms_column_label_attr,
//		'mapped' => $pzcms_column_mapped,
		'read_only' => $pzcms_column_read_only,
//		'required' => $pzcms_column_required,
	),
// 	'file' => array(
// 		'multiple' => $pzcms_column_multiple,
// 		'disabled' => $pzcms_column_disabled,
// 		'empty_data' => $pzcms_column_empty_data,
// 		'error_bubbling' => $pzcms_column_error_bubbling,
// 		'error_mapping' => $pzcms_column_error_mapping,
// 		'label' => $pzcms_column_label,
// 		'label_attr' => $pzcms_column_label_attr,
// 		'mapped' => $pzcms_column_mapped,
// 		'read_only' => $pzcms_column_read_only,
// 		'required' => $pzcms_column_required,
// 	),
//	'radio' => array(
//		'value' => $pzcms_column_value,
//		'data' => $pzcms_column_data,
//		'disabled' => $pzcms_column_disabled,
//		'error_bubbling' => $pzcms_column_error_bubbling,
//		'error_mapping' => $pzcms_column_error_mapping,
//		'label' => $pzcms_column_label,
//		'label_attr' => $pzcms_column_label_attr,
//		'mapped' => $pzcms_column_mapped,
//		'read_only' => $pzcms_column_read_only,
//		'required' => $pzcms_column_required,
//	),
//		'collection',
//		'repeated',
	'hidden' => array(
//		'error_bubbling' => $pzcms_column_error_bubbling,
//		'required' => $pzcms_column_required,
//		'data' => $pzcms_column_data,
//		'error_mapping' => $pzcms_column_error_mapping,
// 		'mapped' => $pzcms_column_mapped,
//		'property_path' => $pzcms_column_property_path,
	),
//		'button',
//		'reset',
//		'submit',
//		'form',
	'*CKEditor' => array(),
	'*FilePicker' => array(),
	'*CBML' => array(),
	'*CML' => array(),
);

$CMS_COLUMN_TYPES_CUSTOM = array(
	'*CKEditor' => new \Secret\Twig\Type\CKEditor(),
	'*FilePicker' => new \Secret\Twig\Type\FilePicker(),
	'*CBML' => new \Secret\Twig\Type\ContentsForMultiLang(),
	'*CML' => new \Secret\Twig\Type\ContentForMultiLang(),
);

$CMS_COLUMN_META = array (
	'id',
	'slug',
	'modelId',
	'active',
	'rank',
	'parentId',
	'added',
	'lastModified',
);

?>